﻿using UnityEngine;
using System.Collections;

public class MenuAnimation : MonoBehaviour {
	public Transform[] point;
	public int curr=0;
	public float move ;
	// Use this for initialization
	void Start () {
		//Screen.SetResolution (960, 640, true);
	}
	
	// Update is called once per frame
	void Update () {
		if(transform.position == point[curr - 1].position && curr<3)
		{
			curr++;
		}
		transform.position = Vector3.MoveTowards (transform.position,point[curr].position,move*Time.deltaTime);
	}

}
